#include <iostream>
#include <fstream>
#include <pthread.h>
#include "mt_proc.h"

using namespace std;

pthread_mutex_t  mt_lock;
mt_db_s mt_db_store[MAX_MT_DB];
long long mt_c;

void mtlogger(void)
{
	ofstream mtfile;
	int mt_fd;
	int cnt;

	mtfile.open("dump.log");
	mtfile<<mt_c<<" \n";
        for (cnt=0; cnt<MAX_MT_DB; cnt++)
	{
		mtfile<<  mt_db_store[cnt].end <<" "<<mt_db_store[cnt].task<<" "<<mt_db_store[cnt].function<<" "<< mt_db_store[cnt].val<<" "<<"\n";
	}
	mtfile.close();
}

